//package com.datasource.dynamicdatasource.config;
//
//import com.alibaba.druid.pool.DruidDataSource;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
///**
// * @author sl
// */
//@Configuration
//public class DataSourceConfig {
//
//    @Bean("dataSource1")
//    @ConfigurationProperties(prefix = "spring.datasource.datasource1")
//    public DataSource dataSource1(){
//        DruidDataSource druidDataSource = new DruidDataSource();
//        return druidDataSource;
//    }
//
//
//    @Bean("dataSource2")
//    @ConfigurationProperties(prefix = "spring.datasource.datasource2")
//    public DataSource dataSource2(){
//        DruidDataSource druidDataSource = new DruidDataSource();
//        return druidDataSource;
//    }
//}
